package com.cie2.janji.pages.users;

import java.util.List;

import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.ioc.annotations.Inject;

import com.cie2.janji.base.CieUserPage;
import com.cie2.janji.entities.Promise;
import com.cie2.janji.services.PromiseService;

public class PromiseList extends CieUserPage {

	@Property
	private Promise promise;
	
	//services
	@Inject
	private PromiseService promiseService;
	
	public List getPromises() {
		return promiseService.getAll();
	}
}
